package com.fance.service;

import com.fance.common.ServerResponse;
import com.fance.model.Product;
import com.fance.vo.ProductDetailVo;
import com.github.pagehelper.PageInfo;


/**
 * @author fance
 * @date 18-5-3 上午10:03
 */
public interface IProductService {
    ServerResponse<PageInfo> getProductList(int pageNum, int pageSize);

    ServerResponse<PageInfo> searchProduct(String productName, Integer productId, int pageNum, int pageSize);

    ServerResponse<ProductDetailVo> manageProductDetail(Integer productId);

    ServerResponse<String> setSaleStatus(Integer productId, Integer status);

    ServerResponse saveOrUpdateProduct(Product product);

    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword, Integer categoryId, int pageNum, int pageSize, String orderBy);

}

